<?php include load_tpl('header');?>
<p id="breadcrumbs">
    <a href="/">首页</a> <b>»</b> 
    <span>招聘职位列表</span>
</p>

<div class="box"> 
  <div class="left"></div> 
  <div class="right"></div> 
  <div class="heading"> 
    <h1 style="background-image: url('./images/report.png');">招聘职位列表</h1> 
  </div> 
  <div class="content"> 
    <table class="list"> 
      <thead> 
        <tr style="background-color: rgb(244, 244, 248); ">
          <td class="left">招聘职位</td> 
          <td class="left">招聘人数</td> 
          <td class="right">工作地点</td> 
          <td class="right">发布日期</td> 
		   <td class="right">操作</td> 
        </tr> 
      </thead> 
      <tbody>
	  <?php if($job_list){
			foreach($job_list as $job){
	?>
	<tr> 
          <td class="left"><?php echo $job['position'];?></td> 
          <td class="left"><?php echo $job['num'];?></td> 
          <td class="right"><?php echo $job['location'];?></td> 
          <td class="right"><?php echo $job['created'];?></td>
		  <td class="right"><a class="button" href="index.php?mod=employ&act=edit&job_id=<?php echo $job['id'];?>"><span>编辑</span></a><a class="button" href="index.php?mod=employ&act=del&job_id=<?php echo $job['id'];?>"><span>删除</span></a></td> 
        </tr> 
	<?php
			}
	  }else{
	?>
	  <tr> 
          <td align="center" colspan="5">无数据!</td> 
        </tr> 
	<?php
	  }
	  ?>
         
	</tbody> 
    </table> 
    <div class="pagination"><div class="results">Showing 1 to 18 of 18 (1 Pages)</div></div> 
  </div> 
  </div> 

<?php include load_tpl('footer');?>
